package com.atguigu.gulimall.search.entity.vo;

import com.atguigu.common.to.SkuEsModel;
import lombok.Data;

import java.util.List;
@Data
public class SearchResult {

    /**
     * 查询到的所有商品信息
     */
    private List<SkuEsModel> products;

    /**
     * 当前页
     */

    private Integer pageNum;

    /**
     * 总页码
     */
    private Integer totalPage;

    /**
     * 总记录数
     */
    private Long total;

    /**
     * 品牌
     */
    private List<BrandVo> brands;

    /**
     * 当前查询到的结果的所有属性
     */
    private List<AttrVo> attrs;

    /**
     * 当前查询到的结果的分类
     */
    private List<CatelogVo> catelogs;


    @Data
    public static class BrandVo {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class AttrVo {
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }

    @Data
    public static class CatelogVo {
        private Long catelogId;
        private String catelogName;
    }
}
